<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <title>房间配置</title>
    <link href="/static/admin/css/public/style.css" rel="stylesheet">
    <link href="/static/admin/css/public/style-responsive.css" rel="stylesheet">
    <link href="/static/admin/css/public/plugs/bootstrap-datetimepicker.min.css" rel="stylesheet">
    <link href="/static/admin/css/public/loading.css" rel="stylesheet">
    <link href="/static/admin/css/sys/roomSet.css" rel="stylesheet">

    <script src="/static/admin/js/public/html5shiv.js"></script>
    <script src="/static/admin/js/public/plugs/respond.min.js"></script>
</head>

<body class="sticky-header" style="font-family: '微软雅黑';">
<!-- 页面位置 -->
<div class="fixedDiv">
    <div class="page-heading">
        <ul class="breadcrumb" style="margin-top: 20px;">
            <span style="font-weight: bold;">位置：</span>
            <li>系统管理</li>
            <li class="active">房间配置</li>
        </ul>
        <hr />
    </div>
    <div class="form-inline form-group">
        <form style="display: inline;">
            游戏:
            <select class="select" id="game" onchange="loadRooms(this)">
                <option value="">&nbsp;&nbsp;全部</option>
            </select>

            &nbsp;&nbsp;房间:
            <select class="select" id="room">
                <option value="">&nbsp;&nbsp;全部</option>
            </select>

            &nbsp;&nbsp;状态:
            <select class="select" id="state">
                <option value="-1" selected="selected">&nbsp;&nbsp;全部</option>
                <option value="1">&nbsp;&nbsp;系统吃分</option>
                <option value="0">&nbsp;&nbsp;系统吐分</option>
            </select>

            &nbsp;&nbsp;房间当日输赢:
            <select class="select" id="winLose">
                <option value="-1" selected="selected">&nbsp;&nbsp;全部</option>
                <option value="1">&nbsp;&nbsp;输（-）</option>
                <option value="0">&nbsp;&nbsp;赢（+）</option>
            </select>
            <input type="reset" id="reset" style="display: none;" />
        </form>
        <button class="btn btn-sm btn-success" onclick="loadDatas()">开始查询</button>
        <button class="btn btn-sm btn-success" style="margin-left: 10px;" onclick="loadAllData()">显示所有</button>

        <div class="dataTable_info" style="font-weight: inherit;">
            <div class="dataTable_heads">
                <span>总输赢:<font class="nums" id="zsy">0</font></span>
                <span>系统当前血池:<font class="nums" id="xtdqxc">0</font></span>
                <span>当日输赢:<font class="nums" id="drsy">0</font></span>
                <span>当日吐分:<font class="nums" id="drtf">0</font></span>
                <span>当日吃分:<font class="nums" id="drcf">0</font></span>
                <span>当日吞吐率:<font class="nums" id="drtfl">0</font></span>
            </div>
            <!--<div class="dataTable_page">
                <span>共100条记录</span>
            <span>每页40条</span>
            <span>页码1/1</span>
                <span id="shang">上一页</span>
                <span id="xia">下一页</span>
                转到<input class="form-inline" type="text" id="page"
                        style="height: 25px; width: 50px; margin-left: 10px;"
                        onKeyUp="this.value=this.value.replace(/\D/g,'')"
                        onafterpaste="this.value=this.value.replace(/\D/g,'')" />
                页
                <button type="button" class="btn btn-sm btn-primary" id="go" onclick="go();">go</button>
            </div>-->
        </div>
    </div>
</div>
<!-- 页面位置 -->
<div class="wrapper">
    <div class="row row-margin">
        <div class="col-sm-12">
            <section class="panel panel-margin">
                <div class="panel-body">
                    <table class="table table-hover table-condensed table-striped general-table">
                        <thead>
                        <tr>
                            <th>serverId</th>
                            <th>房间名</th>
                            <th>总输赢</th>
                            <th>当日输赢</th>
                            <th>血池平衡值</th>
                            <th>当前剩余血池</th>
                            <th>状态</th>
                            <th>吐分率</th>
                            <th>血池控制记录</th>
                            <th>当前血池税率</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody id="databody">
                        <tr>
                            <td colspan="10" align="center">数据正在加载中，请稍后~</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </section>
        </div>
    </div>
</div>

<div class="sk-circle" id="load" style="display: ;">
    <div class="sk-circle1 sk-child"></div>
    <div class="sk-circle2 sk-child"></div>
    <div class="sk-circle3 sk-child"></div>
    <div class="sk-circle4 sk-child"></div>
    <div class="sk-circle5 sk-child"></div>
    <div class="sk-circle6 sk-child"></div>
    <div class="sk-circle7 sk-child"></div>
    <div class="sk-circle8 sk-child"></div>
    <div class="sk-circle9 sk-child"></div>
    <div class="sk-circle10 sk-child"></div>
    <div class="sk-circle11 sk-child"></div>
    <div class="sk-circle12 sk-child"></div>
</div>

<div class="modal fade" id="add_xuechi" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static" data-keyboard="false" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4>添加血池控制</h4>
            </div>
            <div class="modal-body">
                <table id="modal_table">
                    <tr>
                        <td class="mtTitle">房间信息：</td>
                        <td style="text-align: left;" colspan="2">
                            <input type="hidden" id="serverId" />
                            <span id="roomname"></span>
                        </td>
                    </tr>
                    <tr>
                        <td class="mtTitle">执行时间：</td>
                        <td>
                            <input type='text' id="doingTime" class="form-control" placeholder="请选择" readonly="readonly" />
                        </td>
                        <td width="24px"><span class="fa fa-times" id="dtError"></span></td>
                    </tr>
                    <tr>
                        <td class="mtTitle">血池平衡值：</td>
                        <td style="text-align: left;" colspan="2">
                            <span id="xcphz"></span>
                        </td>
                    </tr>
                    <tr>
                        <td class="mtTitle">当前血池值：</td>
                        <td style="text-align: left;" colspan="2">
                            <span id="dqxcz"></span>
                        </td>
                    </tr>
                    <tr>
                        <td class="mtTitle">血池控制目标值：</td>
                        <td>
                            <input type="text" id="score" class="form-control" onkeyup="value=value.replace(/[^\-? \d]/g,'')"/>
                        </td>
                        <td><span class="fa fa-times" id="sError"></span></td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td style="text-align: left; color: red;">
                            (&gt;0:表示放水; &lt;0:表示吃分)
                        </td>
                    </tr>
                </table>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-success" onclick="addRoomSet()">确定</button>
                <button type="button" class="btn btn-danger" onclick="cancelAdd()">取消</button>
            </div>
        </div>
    </div>
</div>
<!--修改血池-->
<div class="modal fade" id="change_xuechi" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static" data-keyboard="false" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4>修改血池税率</h4>
            </div>
            <div class="modal-body">
                <table id="modal_table">

                    <tr>
                        <td class="mtTitle">房间信息：</td>
                        <td style="text-align: left;" colspan="2">
                            <input type="hidden" id="serverId" />
                            <span id="roomname_change"></span>
                        </td>
                    </tr>
                    <!--<tr>-->
                    <!--<td class="mtTitle">执行时间：</td>-->
                    <!--<td>-->
                    <!--<input type='text' id="doingTime" class="form-control" placeholder="请选择" readonly="readonly" />-->
                    <!--</td>-->
                    <!--<td width="24px"><span class="fa fa-times" id="dtError"></span></td>-->
                    <!--</tr>-->
                    <tr>
                        <td class="mtTitle">当前血池税率：</td>
                        <td style="text-align: left;" colspan="2">
                            <span id="dqxcz_"></span>
                        </td>
                    </tr>
                    <input type="hidden" id="condition"/>
                    <!--<tr>-->
                    <!--<td class="mtTitle">当前血池值：</td>-->
                    <!--<td style="text-align: left;" colspan="2">-->
                    <!--<span id="dqxcz"></span>-->
                    <!--</td>-->
                    <!--</tr>-->
                    <tr>
                        <td class="mtTitle">血池税率目标值：</td>
                        <td>
                            <input type="text" id="xc_rate" class="form-control" onkeyup="value=value.replace(/[^\-? \d]/g,'')"/>
                        </td>
                        <td><span class="fa fa-times" id="sError"></span></td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td style="text-align: left; color: red;" id="msg">
                            (0--10000)
                        </td>
                    </tr>
                </table>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-success" onclick="changexc()">确定</button>
                <button type="button" class="btn btn-danger" onclick="cancelchange()">取消</button>
            </div>
        </div>
    </div>
</div>
<!--
    提示框
-->
<div class="modal fade" id="tishi" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static" data-keyboard="false" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4>提示</h4>
            </div>
            <div class="modal-body">
                操作成功！
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-danger" onclick="window.location.reload()" >确定</button>
            </div>
        </div>
    </div>
</div>
<!-- Placed js at the end of the document so the pages load faster -->
<script type="text/javascript" src="/static/admin/js/public/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="/static/admin/js/public/plugs/bootstrap.min.js"></script>
<script type="text/javascript" src="/static/admin/js/public/plugs/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="/static/admin/js/public/plugs/bootstrap-datetimepicker.zh-CN.js"></script>
<script type="text/javascript" src="/static/admin/js/sys/roomSearch/loadGameAndRoom.js"></script>
<script type="text/javascript" src="/static/admin/js/public.js"></script>
<script type="text/javascript" src="/static/admin/js/sys/loadRoomSet.js"></script>

</body>
<script>

</script>
</html>
